package com.community.feign.contents.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 帖子
 *
 * @author hjs hjs@qq.com
 * @since 1.0.0 2023-02-21
 */
@Data
@ApiModel(value = "帖子")
public class PostDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	private Integer id;

	@ApiModelProperty(value = "用户ID")
	private String userId;

	@ApiModelProperty(value = "用户")
	private String userName;

	@ApiModelProperty(value = "类目ID")
	private Integer classId;

	@ApiModelProperty(value = "类目")
	private String className;

	@ApiModelProperty(value = "圈子ID")
	private String topicId;

	@ApiModelProperty(value = "圈子")
	private String topicName;

	@ApiModelProperty(value = "话题列表")
	private String discussList;

	@ApiModelProperty(value = "投票ID")
	private String voteId;

	@ApiModelProperty(value = "标题")
	private String title;

	@ApiModelProperty(value = "内容")
	private String content;

	@ApiModelProperty(value = "帖子媒体路径")
	private String media;

	@ApiModelProperty(value = "是否置顶")
	private Integer postTop;

	@ApiModelProperty(value = "帖子类型：1 图文 ，2视频 ，4投票")
	private Integer type;

	@ApiModelProperty(value = "地址名称")
	private String address;

	@ApiModelProperty(value = "浏览量")
	private Integer seeNum;

	@ApiModelProperty(value = "点赞数")
	private Integer thumbNum;

	@ApiModelProperty(value = "评论数")
	private Integer commentNum;

	@ApiModelProperty(value = "经度")
	private Double longitude;

	@ApiModelProperty(value = "纬度")
	private Double latitude;

	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;


}